<?php include './application/views/common/zhs_header.php';?>
<?php include './application/views/common/zhs_usercenter_acnt.php';?>
<div class="inv_box w">
<?php include './application/views/common/zhs_usercenter_left.php';?>
  <div class="membd_right">
  	
    <div class="zjbd_top">
      <dl>
        <dt>账户余额<br>
		￥<?php echo number_format($hdata['user_acnt']['use_money'],2);?>元 </dt>
        <dd><span>可用资金：￥<?php echo number_format($hdata['user_acnt']['use_money'],2);?>元 </span><span>已成功充值总额：￥<?php echo number_format($user_recharge_all,2);?>元</span><a href="/account/zhs_recharge">充    值</a></dd>
        <dd style="border:none;"><span>冻结资金：￥<?php echo number_format($hdata['user_acnt']['no_use_money'],2);?>元  </span><span>已成功提现总额：￥<?php echo number_format($user_cash_all,2);?>元</span><a href="/account/zhs_cash.html">提    现</a></dd>
      </dl>
    </div>
    <div class="membdrg_tit mt">
	<form action="/account/zhs_details.html" method="get">
	<span style="float:left">记录时间:</span><input class="inpt_1" style="margin-top:6px;" type="text" value="<?php echo $where['strtime'] ? $where['strtime'] : ''; ?>" name="start_time" onfocus="WdatePicker()" readonly="readonly">
	<span style="float:left">到</span>   <input class="inpt_1" style="margin-top:6px;" type="text" value="<?php echo $where['endtime'] ? $where['endtime'] : ''; ?>" name="end_time" onfocus="WdatePicker()" readonly="readonly" >
	<select name="type" class="sel" style="margin-top:6px;">
	<?php foreach($log_type as $k => $v){?>
	<option value="<?php echo $k;?>" <?php if($where['ftype']==$k) echo "selected='selected'";?>><?php echo $k > 0 ? $v : '资金类型';?></option>
	<?php }?>
	</select>
	<input type="submit" style="width:50px; margin:6px 30px 0 0; padding-right:12px; float:right;" value="查询" class="u9s_But little_button">
	<!--<a class="excel" href="/account/zhs_details.html?act=excel&start_time=<?php echo $where['strtime'] ? $where['strtime'] : ''; ?>&end_time=<?php echo $where['endtime'] ? $where['endtime'] : ''; ?>&type=<?php echo $where['ftype'];?>">导出结果</a>
	--></form>
	</div>
 <div class="hk_body pt">
            <table class="membd_tab">
      <thead>
        <tr bgcolor="#F3F3F3" height="40px">
			<th align="center"><strong>类型</strong></th>
			<th align="center"><strong>操作金额</strong></th>
			<th align="center"><strong>总金额</strong></th>
			<th align="center"><strong>可用金额</strong></th>
			<th align="center"><strong>冻结金额</strong></th>
			<th align="center"><strong>待收金额</strong></th>
			<th align="center"><strong>记录时间</strong></th>
			<th align="center"><strong>备注信息</strong></th>
		  </tr>
      </thead>
      <tbody>
        <?php foreach($list as $val){?>
		  <tr height="35px" style="font-size:12px;">
			<td align="center"><?php echo $log_type[$val['ftype']];?></td>
			
			<td align="center">
			<?php if($val['op'] == 1){?> 
			<font color="#FF0000"  >-<?php echo number_format($val['money'],2);?></font>
			<?php }else{?> 
			<font color="#009900" ><?php echo number_format($val['money'],2);?></font>
			<?php }?>
			</td>
			<td align="center">&yen;<?php echo number_format($val['total'],2);?></td>
			<td align="center">&yen;<?php echo number_format($val['use_money'],2);?></td>
			<td align="center">&yen;<?php echo number_format($val['no_use_money'],2);?></td>
			<td align="center">&yen;<?php echo number_format($val['collection'],2);?></td>
			<td align="center"><?php echo date('Y-m-d H:i:s',$val['add_time']);?></td>
			<td align="center" style="width:160px;" title="<?php echo $val['remark'];?>"><?php echo cut_str($val['remark'], 32);?></td>
			
		  </tr>
		  <?php }?>
      </tbody>
    </table>
	   		
        </div>
        <div class="invbd_page"><?php echo $this->pagination->create_links();?></div>
  </div>
</div> 

<?php include './application/views/common/zhs_footer.php';?>
<?php include './application/views/common/zhs_right.php';?>
